package pojo;// Attendance.java
import java.util.Date;

public class Attendance {
    // 此处 id 为自增字段，不在构造方法中赋值
    private String employeeId;
    private Date date;
    private String status; // 正常、迟到、早退、旷工、请假等

    public Attendance(String employeeId, Date date, String status) {
        this.employeeId = employeeId;
        this.date = date;
        this.status = status;
    }
    
    // getters 和 setters 略


    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return employeeId + "," + date + "," + status;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public Date getDate() {
        return date;
    }

    public String getStatus() {
        return status;
    }
}
